<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <title>搜索结果</title>
    <link rel="icon" th:href="@{/images/searchshow.png}" sizes="32x32">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/semantic-ui/2.2.4/semantic.min.css">
    <link rel="stylesheet" href="../static/css/he.css" th:href="@{/css/he.css}">
    <link rel="stylesheet" href="../static/css/mouseeffect.css.css" th:href="@{/css/mouseeffect.css}">
</head>

<style>
    body {
        background: url('https://static.talkxj.com/photos/f426814dd3748727443775b3e588f68f.png') center center / cover no-repeat;
        background-attachment: fixed;

    }
</style>
<body>

<!--导航-->
<nav th:replace="_fragments :: menu(1)"></nav>
<!--中间内容-->
<div class="m-container-small  m-padded-tb-large">
    <div class="container basic">
        <!--header-->
        <div class="ui top attached segment">
            <div class="ui middle aligned two column grid">
                <div class="column">
                    <h3 class="ui teal header">搜索结果</h3>
                </div>
                <div class="column right aligned">
                    共<h2 class="ui red header m-inline-blok m-text-thin" th:text="${page.totalElements}"> 14 </h2> 个
                </div>
            </div>
        </div>

        <div class="ui top teal attached segment">
            <div class="ui padded vertical segment m-padded-tb-large" th:each="blog : ${page.content}">
                <div class="ui middle aligned mobile reversed stackable grid">
                    <div class="eleven wide column">
                        <h3 class="ui teal header"><a href="#" th:href="@{/blog/{id}(id=${blog.id})}" target="_blank"
                                                      class="m-black" th:text="${blog.title}">该起什么标题好呢</a></h3>
                        <p class="m-text"><a href="#" th:href="@{/blog/{id}(id=${blog.id})}"
                                             th:text="|${blog.description}......|"
                                             class="m-black">我到底在这里写了些什么</a></p>
                        <div class="ui grid">
                            <div class="eleven wide column">
                                <div class="ui mini horizontal link list">
                                    <div class="item">
                                        <img src="https://unsplash.it/100/100?image=1005" alt="" class="ui avatar image"
                                             th:src="@{${blog.user.avatar}}">
                                        <div class="content"><a href="#" class="header"
                                                                th:src="@{${blog.user.nickname}}">Joker</a></div>
                                    </div>
                                    <div class="item">
                                        <i class="calendar icon"></i><span
                                            th:text="${#dates.format(blog.updateTime,'yyyy-MM-dd')}">2021-07-28</span>
                                    </div>
                                    <div class="item">
                                        <i class="eye icon"></i><span th:text="${blog.views}">浏览次数</span>
                                    </div>
                                </div>
                            </div>
                            <div class="right aligned five wide column">
                                <a href="#" th:href="@{/blog/{id}(id=${blog.id})}" target="_blank"
                                   class="ui teal basic label m-padded-small"
                                   th:text="${blog.type.name}">认知升级</a>
                            </div>
                        </div>
                    </div>
                    <div class="five wide column">
                        <a href="#" th:href="@{/blog/{id}(id=${blog.id})}" target="_blank">
                            <img src="https://unsplash.it/800/450?image=1005" alt="" class="ui rounded image"
                                 th:src="@{${blog.firstPicture}}">
                        </a>
                    </div>
                </div>
            </div>
        </div>
        <!--footer-->
        <div class="ui bottom attached segment" th:if="${page.totalPages}>1">
            <div class="ui middle aligned two column grid">
                <div class="column">
                    <a href="#" th:href="@{/(page=${page.number}-1)}" class="ui mini teal basic button"
                       th:unless="${page.first}">上一页</a>
                </div>
                <div class="column right aligned">
                    <a href="#" th:href="@{/(page=${page.number}+1)}" class="ui mini teal basic button"
                       th:unless="${page.last}">下一页</a>
                </div>
            </div>
        </div>
    </div>
</div>
<div>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
</div>

<!--底部footer-->
<footer th:replace="_fragments :: footer"></footer>
<script src="https://cdn.jsdelivr.net/npm/jquery@3.2/dist/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/semantic-ui/2.2.4/semantic.min.js"></script>
<script type="text/javascript" th:src="@{/js/mouse.js}"></script>
<script>
    $('.menu.toggle').click(function () {
        $('.m-item').toggleClass('m-mobile-hide');
    })
</script>
</body>
</html>